package features;

import javax.swing.JOptionPane;
import javax.swing.JTextPane;

public class Find{
	
	//protected JTextPane textPane = getTextPane();

	protected String word = "";
	protected int findIndex = -1;
	
	protected void selectFound(JTextPane textPane) {
		textPane.grabFocus();
		textPane.select(findIndex, findIndex + word.length());
	}
	
	protected void show_word_not_find(){
		JOptionPane.showMessageDialog(null, "Word not found!", "No match",
				JOptionPane.WARNING_MESSAGE);
	}
}
